package qldc.pm.tienan.service.persistence;

import com.liferay.portal.kernel.bean.PortletBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.kernel.util.ReferenceRegistry;
import com.liferay.portal.service.ServiceContext;

import qldc.pm.tienan.model.BienBanBanGiaoHoSo;

import java.util.List;

/**
 * The persistence utility for the bien ban ban giao ho so service. This utility wraps {@link BienBanBanGiaoHoSoPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see BienBanBanGiaoHoSoPersistence
 * @see BienBanBanGiaoHoSoPersistenceImpl
 * @generated
 */
public class BienBanBanGiaoHoSoUtil {
    private static BienBanBanGiaoHoSoPersistence _persistence;

    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class.
     */

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
     */
    public static void clearCache() {
        getPersistence().clearCache();
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel)
     */
    public static void clearCache(BienBanBanGiaoHoSo bienBanBanGiaoHoSo) {
        getPersistence().clearCache(bienBanBanGiaoHoSo);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
     */
    public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
        throws SystemException {
        return getPersistence().countWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
     */
    public static List<BienBanBanGiaoHoSo> findWithDynamicQuery(
        DynamicQuery dynamicQuery) throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
     */
    public static List<BienBanBanGiaoHoSo> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end)
        throws SystemException {
        return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
     */
    public static List<BienBanBanGiaoHoSo> findWithDynamicQuery(
        DynamicQuery dynamicQuery, int start, int end,
        OrderByComparator orderByComparator) throws SystemException {
        return getPersistence()
                   .findWithDynamicQuery(dynamicQuery, start, end,
            orderByComparator);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel)
     */
    public static BienBanBanGiaoHoSo update(
        BienBanBanGiaoHoSo bienBanBanGiaoHoSo) throws SystemException {
        return getPersistence().update(bienBanBanGiaoHoSo);
    }

    /**
     * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext)
     */
    public static BienBanBanGiaoHoSo update(
        BienBanBanGiaoHoSo bienBanBanGiaoHoSo, ServiceContext serviceContext)
        throws SystemException {
        return getPersistence().update(bienBanBanGiaoHoSo, serviceContext);
    }

    /**
    * Returns all the bien ban ban giao ho sos where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @return the matching bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.BienBanBanGiaoHoSo> findByNguoiDuocBanGiao_ChucVu(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByNguoiDuocBanGiao_ChucVu(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao);
    }

    /**
    * Returns a range of all the bien ban ban giao ho sos where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.BienBanBanGiaoHoSoModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @param start the lower bound of the range of bien ban ban giao ho sos
    * @param end the upper bound of the range of bien ban ban giao ho sos (not inclusive)
    * @return the range of matching bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.BienBanBanGiaoHoSo> findByNguoiDuocBanGiao_ChucVu(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao, int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByNguoiDuocBanGiao_ChucVu(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao, start, end);
    }

    /**
    * Returns an ordered range of all the bien ban ban giao ho sos where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.BienBanBanGiaoHoSoModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @param start the lower bound of the range of bien ban ban giao ho sos
    * @param end the upper bound of the range of bien ban ban giao ho sos (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of matching bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.BienBanBanGiaoHoSo> findByNguoiDuocBanGiao_ChucVu(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao, int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .findByNguoiDuocBanGiao_ChucVu(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao, start, end, orderByComparator);
    }

    /**
    * Returns the first bien ban ban giao ho so in the ordered set where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching bien ban ban giao ho so
    * @throws qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException if a matching bien ban ban giao ho so could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo findByNguoiDuocBanGiao_ChucVu_First(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException {
        return getPersistence()
                   .findByNguoiDuocBanGiao_ChucVu_First(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao, orderByComparator);
    }

    /**
    * Returns the first bien ban ban giao ho so in the ordered set where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the first matching bien ban ban giao ho so, or <code>null</code> if a matching bien ban ban giao ho so could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo fetchByNguoiDuocBanGiao_ChucVu_First(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByNguoiDuocBanGiao_ChucVu_First(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao, orderByComparator);
    }

    /**
    * Returns the last bien ban ban giao ho so in the ordered set where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching bien ban ban giao ho so
    * @throws qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException if a matching bien ban ban giao ho so could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo findByNguoiDuocBanGiao_ChucVu_Last(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException {
        return getPersistence()
                   .findByNguoiDuocBanGiao_ChucVu_Last(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao, orderByComparator);
    }

    /**
    * Returns the last bien ban ban giao ho so in the ordered set where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the last matching bien ban ban giao ho so, or <code>null</code> if a matching bien ban ban giao ho so could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo fetchByNguoiDuocBanGiao_ChucVu_Last(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .fetchByNguoiDuocBanGiao_ChucVu_Last(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao, orderByComparator);
    }

    /**
    * Returns the bien ban ban giao ho sos before and after the current bien ban ban giao ho so in the ordered set where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * @param bienBanBanGiaoHoSoId the primary key of the current bien ban ban giao ho so
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
    * @return the previous, current, and next bien ban ban giao ho so
    * @throws qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException if a bien ban ban giao ho so with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo[] findByNguoiDuocBanGiao_ChucVu_PrevAndNext(
        long bienBanBanGiaoHoSoId, java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException {
        return getPersistence()
                   .findByNguoiDuocBanGiao_ChucVu_PrevAndNext(bienBanBanGiaoHoSoId,
            nguoiDuocBanGiao, chucVuNguoiDuocBanGiao, orderByComparator);
    }

    /**
    * Removes all the bien ban ban giao ho sos where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63; from the database.
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @throws SystemException if a system exception occurred
    */
    public static void removeByNguoiDuocBanGiao_ChucVu(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao)
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence()
            .removeByNguoiDuocBanGiao_ChucVu(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao);
    }

    /**
    * Returns the number of bien ban ban giao ho sos where nguoiDuocBanGiao LIKE &#63; and chucVuNguoiDuocBanGiao LIKE &#63;.
    *
    * @param nguoiDuocBanGiao the nguoi duoc ban giao
    * @param chucVuNguoiDuocBanGiao the chuc vu nguoi duoc ban giao
    * @return the number of matching bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static int countByNguoiDuocBanGiao_ChucVu(
        java.lang.String nguoiDuocBanGiao,
        java.lang.String chucVuNguoiDuocBanGiao)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence()
                   .countByNguoiDuocBanGiao_ChucVu(nguoiDuocBanGiao,
            chucVuNguoiDuocBanGiao);
    }

    /**
    * Caches the bien ban ban giao ho so in the entity cache if it is enabled.
    *
    * @param bienBanBanGiaoHoSo the bien ban ban giao ho so
    */
    public static void cacheResult(
        qldc.pm.tienan.model.BienBanBanGiaoHoSo bienBanBanGiaoHoSo) {
        getPersistence().cacheResult(bienBanBanGiaoHoSo);
    }

    /**
    * Caches the bien ban ban giao ho sos in the entity cache if it is enabled.
    *
    * @param bienBanBanGiaoHoSos the bien ban ban giao ho sos
    */
    public static void cacheResult(
        java.util.List<qldc.pm.tienan.model.BienBanBanGiaoHoSo> bienBanBanGiaoHoSos) {
        getPersistence().cacheResult(bienBanBanGiaoHoSos);
    }

    /**
    * Creates a new bien ban ban giao ho so with the primary key. Does not add the bien ban ban giao ho so to the database.
    *
    * @param bienBanBanGiaoHoSoId the primary key for the new bien ban ban giao ho so
    * @return the new bien ban ban giao ho so
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo create(
        long bienBanBanGiaoHoSoId) {
        return getPersistence().create(bienBanBanGiaoHoSoId);
    }

    /**
    * Removes the bien ban ban giao ho so with the primary key from the database. Also notifies the appropriate model listeners.
    *
    * @param bienBanBanGiaoHoSoId the primary key of the bien ban ban giao ho so
    * @return the bien ban ban giao ho so that was removed
    * @throws qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException if a bien ban ban giao ho so with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo remove(
        long bienBanBanGiaoHoSoId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException {
        return getPersistence().remove(bienBanBanGiaoHoSoId);
    }

    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo updateImpl(
        qldc.pm.tienan.model.BienBanBanGiaoHoSo bienBanBanGiaoHoSo)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().updateImpl(bienBanBanGiaoHoSo);
    }

    /**
    * Returns the bien ban ban giao ho so with the primary key or throws a {@link qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException} if it could not be found.
    *
    * @param bienBanBanGiaoHoSoId the primary key of the bien ban ban giao ho so
    * @return the bien ban ban giao ho so
    * @throws qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException if a bien ban ban giao ho so with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo findByPrimaryKey(
        long bienBanBanGiaoHoSoId)
        throws com.liferay.portal.kernel.exception.SystemException,
            qldc.pm.tienan.NoSuchBienBanBanGiaoHoSoException {
        return getPersistence().findByPrimaryKey(bienBanBanGiaoHoSoId);
    }

    /**
    * Returns the bien ban ban giao ho so with the primary key or returns <code>null</code> if it could not be found.
    *
    * @param bienBanBanGiaoHoSoId the primary key of the bien ban ban giao ho so
    * @return the bien ban ban giao ho so, or <code>null</code> if a bien ban ban giao ho so with the primary key could not be found
    * @throws SystemException if a system exception occurred
    */
    public static qldc.pm.tienan.model.BienBanBanGiaoHoSo fetchByPrimaryKey(
        long bienBanBanGiaoHoSoId)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().fetchByPrimaryKey(bienBanBanGiaoHoSoId);
    }

    /**
    * Returns all the bien ban ban giao ho sos.
    *
    * @return the bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.BienBanBanGiaoHoSo> findAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll();
    }

    /**
    * Returns a range of all the bien ban ban giao ho sos.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.BienBanBanGiaoHoSoModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of bien ban ban giao ho sos
    * @param end the upper bound of the range of bien ban ban giao ho sos (not inclusive)
    * @return the range of bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.BienBanBanGiaoHoSo> findAll(
        int start, int end)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end);
    }

    /**
    * Returns an ordered range of all the bien ban ban giao ho sos.
    *
    * <p>
    * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link qldc.pm.tienan.model.impl.BienBanBanGiaoHoSoModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
    * </p>
    *
    * @param start the lower bound of the range of bien ban ban giao ho sos
    * @param end the upper bound of the range of bien ban ban giao ho sos (not inclusive)
    * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
    * @return the ordered range of bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static java.util.List<qldc.pm.tienan.model.BienBanBanGiaoHoSo> findAll(
        int start, int end,
        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().findAll(start, end, orderByComparator);
    }

    /**
    * Removes all the bien ban ban giao ho sos from the database.
    *
    * @throws SystemException if a system exception occurred
    */
    public static void removeAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        getPersistence().removeAll();
    }

    /**
    * Returns the number of bien ban ban giao ho sos.
    *
    * @return the number of bien ban ban giao ho sos
    * @throws SystemException if a system exception occurred
    */
    public static int countAll()
        throws com.liferay.portal.kernel.exception.SystemException {
        return getPersistence().countAll();
    }

    public static BienBanBanGiaoHoSoPersistence getPersistence() {
        if (_persistence == null) {
            _persistence = (BienBanBanGiaoHoSoPersistence) PortletBeanLocatorUtil.locate(qldc.pm.tienan.service.ClpSerializer.getServletContextName(),
                    BienBanBanGiaoHoSoPersistence.class.getName());

            ReferenceRegistry.registerReference(BienBanBanGiaoHoSoUtil.class,
                "_persistence");
        }

        return _persistence;
    }

    /**
     * @deprecated As of 6.2.0
     */
    public void setPersistence(BienBanBanGiaoHoSoPersistence persistence) {
    }
}
